import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
import { useMainStore } from "@/store";
import { log } from "console";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "home",
    alias: ["/home"], // 别名，可以定义很多个
    meta: {
      showBottomBar: true,
      isShow: true,
      keepAlive: true, // 添加 meta 字段，标记需要缓存的组件
    },
    component: () => import("../views/home/index.vue"),

    children: [],
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
